home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Collections: Taifun
/
Taifun 136 (1990-05-15)(Ossowski, Stefan)(DE)(PD).zip
/
Taifun 136 (1990-05-15)(Ossowski, Stefan)(DE)(PD).adf
/
Assembler-Tools
/
LSC.asm
< prev
next >
Wrap
Assembly Source File
|
1990-04-10
|
2KB
|
60 lines
*********************************************
* Programm: LSC *
* Zweck: Löscht Screen *
* Datum: 10.04.90 *
* Autor: TAIFUN *
*********************************************
_SysBase equ 4
_LVOOpenLibrary equ -552
_LVOCloseLibrary equ -414
_LVOOutput equ -60
_LVOWrite equ -48
********************** DOS/Library öffnen **********************
_main move.l #dosname,a1
moveq #0,d0
move.l _SysBase,a6
jsr _LVOOpenLibrary(a6)
tst.l d0
beq ende
move.l d0,_DOSBase
********************* Ausgabe-Handle ermitteln ****************
move.l _DOSBase,a6
jsr _LVOOutput(a6)
move.l d0,d4
********************* Screen löschen ***************************
move.l d4,d1
move.l #lsc,d2
moveq #1,d3
move.l _DOSBase,a6
jsr _LVOWrite(a6)
********************* Library schließen ***********************
move.l _DOSBase,a1
move.l _SysBase,a6
jsr _LVOCloseLibrary(a6)
********************* Falls Fehler Ende ***********************
ende rts ;Return zum CLI
***************************************************************
********************* Datenbereich ****************************
***************************************************************
_DOSBase dc.l 0
dosname dc.b 'dos.library',0
cnop 0,2
lsc dc.b 12
cnop 0,2